<div class="header">
    <back-Btn></back-Btn>
    任务详情
</div>
<div class="container finance task-detail">
    <div class="list">
        <div class="list-item celled lh25 flex userinfo">
            <div class="w20">
                <div class="item-avtar lh50 tc">
                    <img ng-src={{taskdetail.data.portrait}} ng-if="taskdetail.data.portrait"> {{taskdetail.data.personName|username}}
                </div>
            </div>
            <div class="w80">
                <div class="te w80">{{taskdetail.data.personName}}</div>
                <div class="c9 fs12">
                    {{taskdetail.data.createDate||dateFmt}}
                </div>
            </div>
        </div>
        <div class="list-item celled c9 lh20 fs14 cl task-detail-content">
            <div class="icon_enter" ng-click="taskdetail.setting()" ng-if="taskdetail.data.deletable"></div>
            <div class="task-status done" ng-if="taskdetail.data.status==2"></div>
            <p class="c0 fs16 mt10" ng-bind-html="taskdetail.data.content|parsetohtml"></p>
            <p class="mt10">负责人:{{taskdetail.data.leaderName}}</p>
            <p>任务成员:{{taskdetail.data.participants}}</p>
            <p>截止日期:{{taskdetail.data.expiryDate|dateFmt:"yyyy年MM月dd日"}}</p>
            <p>关联模块:{{taskdetail.data.relatedModuleName}}</p>
            <p class="c-blue" ng-if="taskdetail.data.moduleNo">模块编号:<span class="w60" relative-module="{{taskdetail.data.relatedModule}}" module-no="{{taskdetail.data.moduleNo}}"> {{taskdetail.data.moduleNo}}</span></p>

            <!-- 附件 -->
            <div class="file-upload" checked="true" file-list file-data="taskdetail.data.attachment">
            </div>
        </div>
        <div class="celled comment-menu lh35 mt10">
            <div class="tab fs14 c9" ng-click="taskdetail.submenuhandle(item.key)" ng-class="{active:taskdetail.curtab==item.key}" ng-repeat="item in taskdetail.commentList">
                <p>{{item.value}}</p>
            </div>
        </div>
        <div class="comment lh20 fs14" ng-show="taskdetail.curtab==1">
            <div class="list-item flex cl celled task-comment-update" ng-repeat="item in taskdetail.data.replyList">
                <div class="avtar">
                    <div class="item-avtar sm lh30 fs12 tc">
                        <img ng-src={{item.portrait}} ng-if="item.portrait"> {{item.personName|username}}
                    </div>
                </div>
                <div class="comment-content">
                    <div class="flex">
                        <p class="te w50 fw">{{item.personName }}</p>
                        <p class="c9 fs12 tr w50">{{item.createDate}}</p>
                    </div>
                    <div class="fs12" ng-bind-html="item.content|parsetohtml"></div>
                    <!-- 附件 -->
                    <div class="mt10" file-list checked="true" file-data="item.attachment">
                    </div>
                </div>
            </div>
        </div>
        <div class="comment lh20 fs14" ng-show="taskdetail.curtab==2">
            <div class="list-item flex celled cl task-comment-update" ng-repeat="item in taskdetail.data.updateList">
                <div class="avtar">
                    <div class="item-avtar sm lh30 fs12 tc">
                        <img ng-src={{item.portrait}} ng-if="item.portrait"> {{item.personName|username}}
                    </div>
                </div>
                <div class="comment-content">
                    <div class="flex">
                        <p class="te w50 fw">{{item.personName }}</p>
                        <p class="c9 fs12 tr w50">{{item.createDate}}</p>
                    </div>
                    <div class="fs12" ng-bind-html="item.content|parsetohtml"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="flex footer tc footer-withhr">
    <div class="w50 c0" ng-click="taskdetail.addComment()"><img src="images/pl.png" alt=""> 评论</div>
    <div class="w50 c0" ng-click="taskdetail.confirmchange()" ng-show="taskdetail.data.modifiable">
        <p ng-show="taskdetail.data.status==1"><img src="images/task-done-btn.png" alt=""> 完成任务</p>
        <p ng-show="taskdetail.data.status==2"><img src="images/task-undo.png" alt=""> 改为未完成</p>
    </div>
    <div class="hr"></div>
</div>
